package com.yidu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yidu.utils.BaseBean;

import java.util.Date;
import java.io.Serializable;

/**
 * (DbCart)实体类
 *
 * @author makejava
 * @since 2021-07-30 09:18:42
 */
public class DbCart extends BaseBean implements Serializable {
    private static final long serialVersionUID = 850230776058001954L;
    /**
     * 购物车ID
     */
    private Integer cartid;
    /**
     * 用户ID
     */
    private Integer userid;
    /**
     * 商品ID
     */
    private Integer pdid;
    /**
     * 商品数量
     */
    private Integer cartnumber;
    /**
     * 总金额
     */
    private Float cartmoney;
    /**
     * 加入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cartdate;


    public Integer getCartid() {
        return cartid;
    }

    public void setCartid(Integer cartid) {
        this.cartid = cartid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getPdid() {
        return pdid;
    }

    public void setPdid(Integer pdid) {
        this.pdid = pdid;
    }

    public Integer getCartnumber() {
        return cartnumber;
    }

    public void setCartnumber(Integer cartnumber) {
        this.cartnumber = cartnumber;
    }

    public Float getCartmoney() {
        return cartmoney;
    }

    public void setCartmoney(Float cartmoney) {
        this.cartmoney = cartmoney;
    }

    public Date getCartdate() {
        return cartdate;
    }

    public void setCartdate(Date cartdate) {
        this.cartdate = cartdate;
    }

}
